package com.alibaba.ai.service.impl;

import com.alibaba.ai.dao.RankingMapper;
import com.alibaba.ai.service.RankingService;
import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class RankingServiceImpl implements RankingService {
    @Resource
    private RankingMapper rankingMapper;
    @Override
    public String selectRanking(String eXareaName, String cPrice, String cCompared, String cPercentage) {
        return JSON.toJSONString(rankingMapper.selectRanking(eXareaName,cPrice,cCompared,cPercentage));
    }
}
